import request from '@/utils/request'

export default {
  // /system/department/getList
  // 模糊查询带分页
  getList() {
    return request({
      url: `/system/department/getList`,
      method: 'get'
    })
  },

  // 新增通知
  save(department) {
    return request({
      url: `/system/department/save`,
      method: 'post',
      data: department
    })
  },

  // 修改通知
  update(department) {
    return request({
      url: `/system/department/Update/${department.departmentId}`,
      method: 'post',
      data: department
    })
  },

  // 根据id查通知列表
  getById(id) {
    return request({
      url: `/system/department/getById/${id}`,
      method: 'get'
    })
  },

  // 根据id删除通知列表
  delete(id) {
    return request({
      url: `/system/department/delete/${id}`,
      method: 'delete'
    })
  },

  // system/department/getDepartmentSelectModelList
  getSelectList() {
    return request({
      url: `/system/department/getDepartmentSelectModelList`,
      method: 'get'
    })
  },
}
